import cn.config.MvcConfig;
import cn.config.MybatisConfig;
import cn.controller.StatuteController;
import cn.controller.WorkOrderController;
import cn.entity.Detail;
import cn.entity.Statute;
import cn.entity.Transfer;
import cn.entity.WorkOrder;
import cn.service.DetailService;
import cn.service.QulificationService;
import cn.service.TransferService;
import cn.service.WorkOrderService;
import com.github.pagehelper.PageInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {MybatisConfig.class, MvcConfig.class})
@WebAppConfiguration
public class test6 {

    @Autowired
    WorkOrderService workOrderService;
    @Autowired
    WorkOrderController workOrderController;
    @Autowired
    TransferService transferService;
    @Autowired
    DetailService detailService;
    @Test
    public void test1(){
        Map<String, Object> map = workOrderController.showDetail((long) 11);
        System.out.println(map);
//        List<Map<String, Object>> maps = transferService.detailList((long) 11);
//        System.out.println(maps);
    }
}
